package itsource.cn.itsource.controller;

import com.lyb.domian.User;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class UserController {

    @GetMapping("/user/{id}")
    public User getUser(@PathVariable(value = "id") Long id){
        return new User(id,"朝时有酒、朝时醉，拖至暮时、或变味");
    }
}
